<%--
  Created by IntelliJ IDEA.
  User: 29787
  Date: 2020/11/15
  Time: 23:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        window.onload= function()
        {
            var img=document.getElementById("img");
            img.onclick=function ()
            {
                var date = new Date().getTime();
                img.src = "/Web/sessionCheck?" + date;
            }
        }
    </script>
    <style>
        div
        {
            color: red;
        }
    </style>
</head>
<body>
<form action="sessionDemo4" method="post" target="_blank">
    <label>用户名：</label>
    <input type="text" name="username" size="35">
    <br>
    <label>密码：</label>
    <input type="text" name="password" size="35">
    <br>
    <label>验证码：</label>
    <input type="text" id="checkPassword" size="10" height="30" name="checkPassword">
    <img src="/Web/sessionCheck" id="img" onclick="checkImg()">
    <a href="" id="check" onclick="checkImg()" style="font-size: small">看不清？换一张</a>
    <br>
    <input type="submit" value="提交">
</form>
<div>
    <%=request.getAttribute("co_error")==null?"":request.getAttribute("co_error")%>
</div>
<div>
    <%=request.getAttribute("up_error")==null?"":request.getAttribute("up_error")%>
</div>
</body>
</html>
